﻿<base:BaseUserControl 
    x:Class="WebSiteAdminTool.UI.Views.Security.Users.UserListFilterPanel"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:base="clr-namespace:WebSiteAdminTool.UI.Views.Base"
    xmlns:vm="clr-namespace:WebSiteAdminTool.UI.ViewModels"
    xmlns:vs="clr-namespace:WebSiteAdminTool.UI.Views.Security"
    mc:Ignorable="d"
    d:DesignHeight="100" 
    d:DesignWidth="600" >

    <StackPanel>
        <sdk:Label Style="{StaticResource PageSectionHeader}">User Search</sdk:Label>
        <StackPanel Orientation="Horizontal">
            <TextBlock Style="{StaticResource UserManagementSearchLabel}">Search By:</TextBlock>
            <ComboBox 
                        ItemsSource="{Binding Path=FilterCriteriaList, Mode=OneWay}" 
                        SelectedValue="{Binding Path=SelectedFilterCriteria, Mode=TwoWay}"
                        Style="{StaticResource UserManagementSearchEditor}">
            </ComboBox>
            <TextBlock Style="{StaticResource UserManagementSearchLabel}">Filter Records by:</TextBlock>
            <TextBox Text="{Binding Path=FilterValue, Mode=TwoWay}" Style="{StaticResource UserManagementSearchEditor}" />
            <Button Command="{Binding FilterApplied}" Style="{StaticResource UserManagementSearchButton}">Apply Filter</Button>
        </StackPanel>
        <TextBlock Style="{StaticResource UserManagementSearchLabel}">Wildcard characters * and ? are permitted.</TextBlock>
    </StackPanel>
</base:BaseUserControl>
